extends CharacterBody2D

const SPEED = 500.0

var gravity = ProjectSettings.get_setting("physics/2d/default_gravity")
var direction: Vector2

func _ready():
	direction = Vector2(1, 0).rotated(rotation)

func _physics_process(_delta):
	velocity = SPEED * direction
	move_and_slide()
